package com.yz.lzq.liwushuo.ui.logo;

import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.Window;

import com.yz.lzq.liwushuo.R;
import com.yz.lzq.liwushuo.utils.ActivityUtil;
import com.yz.lzq.liwushuo.ui.main.MainActivity;
import com.yz.lzq.liwushuo.ui.setting.SettingActivity;

public class LogoActivity extends AppCompatActivity implements LogoContract.LogoActivityViewInterface {
    private Context mContext = this;
    private LogoActivityPresenter presenter = null;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.activity_logo);
        presenter = new LogoActivityPresenter(mContext, this);
        presenter.jumpActivity();
    }


    @Override
    public void gotoSettingActivity() {
        ActivityUtil.statActivity(this, SettingActivity.class);
        finish();
    }

    @Override
    public void gotoMainActivity() {
        ActivityUtil.statActivity(this, MainActivity.class);
        finish();
    }
}
